@import "@/style/var.less";

.grammar-check {
  display: flex;
  flex-direction: column;
  height: 100%;
  .list-wrap {
    position: relative;
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    .list-empty {
      position: relative;
      height: 300px;
    }
  }

  .check-submit {
    width: 140px;
    height: 46px;
    font-size: 20px;
  }

  .chose-course-top {
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
    height: 80px;
    padding: 0 40px;
    background-color: #fff;
    .anticon {
      .no-rem-fontsize(24px);
    }
    .header-left {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      .back-arrow {
        width: 30px;
        height: 27px;
        background-image: url("~assets/home/btn_back.png");
        background-size: 100%;
        cursor: pointer;
      }
    }

    .course-title {
      width: 100%;
      flex: 1;
      font-size: 20px;
      font-weight: 700;

      .check-title {
        color: #c7c7c7;
        padding: 0 15px;
      }
      .check__active {
        color: @primary-color;
        position: relative;
        &::after {
          content: "";
          position: absolute;
          width: 23px;
          height: 4px;
          background-color: @primary-color;
          bottom: -8px;
          left: 50%;
          transform: translateX(-50%);
        }
      }
    }
    .btn-group {
      display: flex;
      justify-content: flex-end;
      align-items: center;

      .head-translate-wrap {
        position: relative;
        width: 50px;
        .translate-menu {
          position: absolute;
          z-index: 10;
          left: -40px;
          width: 120px;
          background-color: #fff;
          .translate-menu-item {
            display: block;
          }
        }
      }
      .translate-btn {
        width: 30px;
        height: 30px;
      }

      .check-btns {
        display: flex;
        align-items: center;
        margin-left: 50px;
      }
      .check-num {
        display: flex;
        .true-num,
        .false-num {
          .no-rem-fontsize(20px);
          display: flex;
          align-items: center;
        }
        .true-num {
          margin: 0 30px 0 0;
          color: @primary-color;
          img {
            width: 20px;
            margin-right: 6px;
          }
        }
        .false-num {
          margin-right: 50px;
          color: #ff6767;
          img {
            width: 17px;
            margin-right: 6px;
          }
        }
      }
    }
  }
  @media screen and (max-width: 1200px) {
    .chose-course-top {
      justify-content: space-between;

      .btn-group {
        position: static;
      }
      .header-left {
        position: static;
      }
    }
  }
}
